From: Florian Müllner Date: Wed, 9 Feb 2022 16:03:13 +0000 (+0100) Subject: st/entry: Add missing notify calls X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~530^2^2~81 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=621c8606df88e94789db1a4c5d35049ff8cc90d4;p=gnome-shell.git st/entry: Add missing notify calls Whoops, at the moment changes of most properties are only notified when going through g_object_set() and not when using the public setters. Part-of: --- diff --git a/src/st/st-entry.c b/src/st/st-entry.c index a8edb2de4..3a4350407 100644 --- a/src/st/st-entry.c +++ b/src/st/st-entry.c @@ -1170,6 +1170,7 @@ st_entry_set_hint_text (StEntry *entry, st_widget_add_style_class_name (label, "hint-text"); st_entry_set_hint_actor (ST_ENTRY (entry), CLUTTER_ACTOR (label)); + g_object_notify_by_pspec (G_OBJECT (entry), props[PROP_HINT_TEXT]); } /** @@ -1358,6 +1359,7 @@ st_entry_set_primary_icon (StEntry *entry, priv = st_entry_get_instance_private (entry); _st_entry_set_icon (entry, &priv->primary_icon, icon); + g_object_notify_by_pspec (G_OBJECT (entry), props[PROP_PRIMARY_ICON]); } /** @@ -1397,6 +1399,7 @@ st_entry_set_secondary_icon (StEntry *entry, priv = st_entry_get_instance_private (entry); _st_entry_set_icon (entry, &priv->secondary_icon, icon); + g_object_notify_by_pspec (G_OBJECT (entry), props[PROP_SECONDARY_ICON]); } /** @@ -1448,6 +1451,7 @@ st_entry_set_hint_actor (StEntry *entry, } st_entry_update_hint_visibility (entry); + g_object_notify_by_pspec (G_OBJECT (entry), props[PROP_HINT_ACTOR]); clutter_actor_queue_relayout (CLUTTER_ACTOR (entry)); }